<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/static/css/iconfont.css">
    <link rel="stylesheet" href="/static/css/myshow.css">
    <script src="/static/js/jquery1_12_4.min.js"></script>
    <script src="/static/js/myshow.js"></script>

</head>
<body>
    <p><a href="/nav/admin/addart.html?sid={$sid}" target="_self">新增</a></p>
    <table>
        <tr>
            <th>ID</th>
            <th>标题</th>
            <th>所在栏目</th>
            <th>置顶</th>
            <th>操作</th>
        </tr>
        {volist name='res' id='val'}
        <tr>
            <td>{$val['rid']}</td>
            <td><a href='/down.html?rid={$val.rid}' target="_blank">{$val.arname}</a></td>
            <td>{$val.sectorname}</td>
            {if $val.top==0}
            <td><a href="/nav/admin/totop.html?rid={$val.rid}&top=1">置顶 </a></td>
            {else/}
            <td><a href="/nav/admin/totop.html?rid={$val.rid}&top=0">取消置顶 </a></td>
            {/if}
            <td><a href="/nav/admin/change.html?rid={$val.rid}">修改 </a>/<a href="/nav/admin/del.html?rid={$val.rid}&sid={$val.sid}"> 删除</a></td>

        </tr>

        {/volist}
       
    </table>
    <div>
        {$res->render()}
    </div>
</body>
</html>